#
# @author Wójcik Karol <wojcikk@student.agh.edu.pl>
# @licence http://www.gnu.org/copyleft/gpl.html GNU/GPL
#

class CreateGroups < ActiveRecord::Migration
  def self.up
    create_table :groups do |t|
      t.column :lesson_id, :int
      t.column :user_id, :int
      t.column :day, :string
      t.column :period, :string
      t.column :classroom, :string
      t.column :notes, :text
    end
  end

  def self.down
    drop_table :groups
  end
end
